package cn.com.bluemoon.daps.model.vo;

import cn.com.bluemoon.daps.common.domain.UserPermissionApi;
import cn.com.bluemoon.daps.model.entity.DapDataModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel(description = "新增数据模型接收对象")
public class DataModelInsertVo implements UserPermissionApi<String> {

    @Valid
    private DapDataModel dapDataModel;

    @ApiModelProperty(value = "系统标签id")
    @NotNull(message = "系统标签id不能为空")
    private List<String> sysTags;

    @Override
    public String getUserPermissionKeyValue() {
        return getDapDataModel().getId();
    }
}
